package com.yjps.system.model;

import com.yjps.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * Created by jessy on 2015/8/21.
 */
@Entity
@Table(name = "t_code")
public class Code extends BaseModel{
    /*所属的码表类*/
    @Column(name = "codetype_id")
    private int codetypeId;
    /*码表key*/
    @Column(name = "code_key")
    private String codeKey;
    /*码表值*/
    @Column(name = "code_value")
    private String codeValue;
    /*码值描述*/
    @Column(name = "code_description")
    private String codeDescription;
   /*码值状态*/
    @Column(name = "code_state",columnDefinition="INT default 1")
    private int codeState;
    @Transient
    private String viewCodeType;

    public int getCodetypeId() {
        return codetypeId;
    }

    public void setCodetypeId(int codetypeId) {
        this.codetypeId = codetypeId;
    }

    public String getCodeKey() {
        return codeKey;
    }

    public void setCodeKey(String codeKey) {
        this.codeKey = codeKey;
    }

    public String getCodeValue() {
        return codeValue;
    }

    public void setCodeValue(String codeValue) {
        this.codeValue = codeValue;
    }

    public String getCodeDescription() {
        return codeDescription;
    }

    public void setCodeDescription(String codeDescription) {
        this.codeDescription = codeDescription;
    }

    public int getCodeState() {
        return codeState;
    }

    public void setCodeState(int codeState) {
        this.codeState = codeState;
    }

    public String getViewCodeType() {
        return viewCodeType;
    }

    public void setViewCodeType(String viewCodeType) {
        this.viewCodeType = viewCodeType;
    }
}
